package com.one.common.common.system.model.response;

import com.one.common.model.http.base.BaseResponse;
import com.one.common.utils.StringUtils;

/**
 * Author: zhulunjun
 * Email: zhulunjun@qq.com
 * CreateDate: 2019/2/14 14:20
 * Description：
 **/
public class FirUpdateResponse extends BaseResponse {

    /**
     * name : 货有友车主
     * version : 1
     * changelog : null
     * updated_at : 1549364144
     * versionShort : 1.0.1
     * build : 1
     * installUrl : http://download.fir.im/apps/5c4eadb1959d69693eb35532/install?download_token=19d5086bc452c3de3222f2dcd5a5d6f3&source=update
     * install_url : http://download.fir.im/apps/5c4eadb1959d69693eb35532/install?download_token=19d5086bc452c3de3222f2dcd5a5d6f3&source=update
     * direct_install_url : http://download.fir.im/apps/5c4eadb1959d69693eb35532/install?download_token=19d5086bc452c3de3222f2dcd5a5d6f3&source=update
     * update_url : http://fir.im/carycp
     * binary : {"fsize":36457945}
     */

    private String name;
    private String version;
    private String changelog;
    private long updated_at;
    private String versionShort;
    private String build;
    private String installUrl;
    private String install_url;
    private String direct_install_url;
    private String update_url;
    private BinaryBean binary;
    /**
     * 是否强制更新
     */
    private boolean isForce = false;

    public boolean isForce() {
        return isForce;
    }

    public void setForce(boolean force) {
        isForce = force;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getVersion() {
        return StringUtils.getIntToString(version);
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getChangelog() {
        return changelog;
    }

    public void setChangelog(String changelog) {
        this.changelog = changelog;
    }

    public long getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(long updated_at) {
        this.updated_at = updated_at;
    }

    public String getVersionShort() {
        return versionShort;
    }

    public void setVersionShort(String versionShort) {
        this.versionShort = versionShort;
    }

    public String getBuild() {
        return build;
    }

    public void setBuild(String build) {
        this.build = build;
    }

    public String getInstallUrl() {
        return installUrl;
    }

    public void setInstallUrl(String installUrl) {
        this.installUrl = installUrl;
    }

    public String getInstall_url() {
        return install_url;
    }

    public void setInstall_url(String install_url) {
        this.install_url = install_url;
    }

    public String getDirect_install_url() {
        return direct_install_url;
    }

    public void setDirect_install_url(String direct_install_url) {
        this.direct_install_url = direct_install_url;
    }

    public String getUpdate_url() {
        return update_url;
    }

    public void setUpdate_url(String update_url) {
        this.update_url = update_url;
    }

    public BinaryBean getBinary() {
        return binary;
    }

    public void setBinary(BinaryBean binary) {
        this.binary = binary;
    }

    public static class BinaryBean {
        /**
         * fsize : 36457945
         */

        private long fsize;

        public long getFsize() {
            return fsize;
        }

        public void setFsize(long fsize) {
            this.fsize = fsize;
        }
    }
}
